<template>
  <div class="security-detail-pop">
    <div class="security-detail-pop-top">
      <img src="" alt="暂无" srcset="" class="top-left" />
      <div class="top-right">
        <div>刘洋</div>
        <div>男</div>
        <div>驾驶员</div>
      </div>
    </div>
    <div class="security-detail-pop-content">
      <div class="security-detail-pop-content-item" v-for="(item, index) in warningDetailPop" :key="index">
        <span>{{ item.label }}</span>
        <span>{{ item.value }}</span>
        <img :src="item.icon" alt="" srcset="" v-if="item.icon" class="icon" />
      </div>
    </div>
    <div class="security-detail-pop-bottom">
      <div>档案信息</div>
      <div>轨迹分析</div>
      <div>背景审查</div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator'
@Component({
  name: 'security-detail-pop'
})
export default class SecurityDetailPop extends Vue {
  @Prop({
    default: () => [
      {
        label: '身份证号：',
        value: '37152217769876'
      },
      {
        label: '联系电话：',
        value: '18933098876'
      },
      {
        label: '公司：',
        value: '白马公交快递有限公司'
      }
    ]
  })
  private warningDetailPop!: any[]
}
</script>

<style lang="scss" scoped>
.security-detail-pop {
  box-sizing: border-box;
  width: 281px;
  height: 287px;
  background: url('../../../../../assets/images/situational-awareness/security-detail-bac.png') no-repeat center;
  padding: 29px 27px 30px 28px;
  font-family: 'PingFang Regular';
  text-align: left;
  &-top {
    box-sizing: border-box;
    display: flex;

    .top-left {
      width: 90px;
      height: 100px;
      background: #fff;
    }
    .top-right {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      margin-left: 18px;
      color: #fff;
      div:nth-child(1) {
        font-size: 18px;
      }
      div:nth-child(2) {
        font-size: 14px;
      }
      div:nth-child(3) {
        font-size: 16px;
        color: #fbcf31;
      }
    }
  }
  &-content {
    margin-top: 10px;
    box-sizing: border-box;
    font-size: 14px;
    // font-weight: 500;
    color: #ffffff;
    &-item {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      width: 100%;
      height: 28px;
      position: relative;
      padding-left: 20px;
      &::after {
        content: '';
        display: block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #fbcf31;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(0, -50%);
      }
      .icon {
        width: 16px;
        height: 16px;
        padding-left: 5px;
      }
    }
  }
  &-bottom {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
    div:nth-child(1) {
      box-sizing: border-box;
      width: 70px;
      height: 24px;
      line-height: 24px;
      color: #36baff;
      border: 1px solid #3790ff;
      border-radius: 12px;
      text-align: center;
    }
    div:nth-child(2) {
      box-sizing: border-box;
      width: 70px;
      height: 24px;
      line-height: 24px;
      color: #00cf1d;
      border: 1px solid #00cf1d;
      border-radius: 12px;
      text-align: center;
    }
    div:nth-child(3) {
      box-sizing: border-box;
      width: 70px;
      height: 24px;
      line-height: 24px;
      color: #bc3737;
      border: 1px solid #e71f19;
      border-radius: 12px;
      text-align: center;
    }
  }
}
</style>
